package com.like.sortlist;

import java.util.Comparator;

public class SortComparator implements Comparator<BaseSort> {

	@Override
	public int compare(BaseSort lhs, BaseSort rhs) {
		if (lhs.sortLetters.equals("@")
				|| rhs.sortLetters.equals("#")) {
			return -1;
		} else if (lhs.sortLetters.equals("#")
				|| rhs.sortLetters.equals("@")) {
			return 1;
		} else {
			return lhs.sortLetters.compareTo(rhs.sortLetters);
		}
	}

}
